gen cowcode = .

replace country = "Congo Democratic Republic of" if country == "Congo Kinshasa"
replace country = "Congo Democratic Republic of" if country == "Zaire"
replace country = "Congo Democratic Republic of" if country == "ZAIRE"
replace country = "Congo Democratic Republic of" if country == "Congo, Democratic Republic of"
replace country = "Congo Democratic Republic of" if country=="Congo, Dem. Rep."
replace country = "Congo Democratic Republic of" if country=="Congo (Kinshasa)"
replace country = "Congo" if country == "Congo Brazzaville"
replace country = "Congo" if country == "Congo (Brazzaville)"
replace country = "Congo" if country == "CONGO"
replace country = "Congo" if country=="Congro, Rep."
replace country = "Ivory Coast" if country=="Cote d'Ivoire"
replace country = "Ivory Coast" if country=="Cote D'Ivoire"
replace country = "Ivory Coast" if country == "COTE D'IVOIRE"
replace country = "Ivory Coast" if country == "Côte d'Ivoire"
replace country = "Czechoslovakia" if country=="Czech Republic"
replace country = "Czechoslovakia" if country == "CZE"
replace country = "Czechoslovakia" if country=="CZECH REP"
replace country = "Czechoslovakia" if country == "CZECH REPUBLIC"
replace country= "Egypt" if country=="Agypt, Arab Rep."
replace country = "Gambia" if country=="Gambia, The"
replace country = "Gambia" if country == "GAMBIA"
replace country= "Germany" if country=="Germany Federal Republic of"
replace country = "Germany" if country == "GFR"
replace country = "Germany" if country == "Germany West"
replace country = "Germany" if country =="FED.REP.GERMANY"
replace country = "Germany" if country == "GERMANY"
replace country = "East Germany" if country == "Germany East"
replace country= "Iran" if country=="Iran, Islamic Rep."
replace country= "Iran" if country=="Iran, Islamic Republic of"
replace country = "Iran" if country == "IRAN"
replace country = "United States" if country=="UNITED STATES OF AMERICA"
replace country = "United States" if country == "USA"
replace country = "United States" if country == "UNITED STATES"
replace country = "United States" if country == "USA"
replace country = "United States" if country == "United States of America"


replace cowcode = 2 if country=="United States"
replace cowcode = 2 if country=="USA"
replace cowcode = 2 if country=="united states"
replace cowcode = 2 if country=="United States of America"
replace cowcode = 2 if country=="UNITED STATES OF AMERICA"

replace country = "Canada" if country == "CAN"
replace country = "Canada" if country == "CANADA"
replace cowcode = 20 if country == "Canada"
replace cowcode = 20 if country=="canada"
replace cowcode = 20 if country=="CANADA"

replace country = "Bahamas" if country == "BHA"
replace country = "Bahamas" if country == "BAHAMAS"
replace cowcode = 31 if country=="Bahamas, The"
replace cowcode = 31 if country=="Bahamas, The "
replace cowcode = 31 if country=="Bahamas, the"
replace cowcode = 31 if country=="Bahamas, the "
replace cowcode = 31 if country=="Bahamas"
replace cowcode = 31 if country == "bahamas"
replace cowcode = 31 if country=="BAHAMAS"

replace country = "Cuba" if country == "CUB"
replace country = "Cuba" if country == "CUBA"
replace cowcode = 40 if country=="Cuba"
replace cowcode = 40 if country=="cuba"
replace cowcode = 40 if country=="CUBA"

replace country = "Haiti" if country == "HAITI"
replace cowcode = 41 if country == "Haiti"
replace cowcode = 41 if country=="haiti"
replace cowcode = 41 if country=="HAITI"

replace country = "Dominican Republic" if country == "Dominican Rep"
replace country = "Dominican Republic" if country == "DOMINICAN REP"
replace cowcode = 42 if country == "Dominican Republic"
replace cowcode = 42 if country == "dominican republic"
replace cowcode = 42 if country=="Dominican Republic"

replace country = "Jamaica" if country == "JAM"
replace country = "Jamaica" if country == "JAMAICA"
replace cowcode = 51 if country == "Jamaica"
replace cowcode = 51 if country == "jamaica"
replace cowcode = 51 if country=="JAMAICA"

replace country = "Trinidad and Tobago" if country == "TRI"
replace country = "Trinidad and Tobago" if country == "TRINIDAD&TOBAGO"
replace cowcode = 52 if country == "Trinidad and Tobago"
replace cowcode = 52 if country == "Trinidad &Tobago"
replace cowcode = 52 if country == "trinidad and tobago"
replace cowcode = 52 if country == "Trinidad"
replace cowcode = 52 if country == "trinidad"
replace cowcode = 52 if country=="TRINIDAD"
replace cowcode = 52 if country=="TRINIDAD&TOBAGO"

replace country = "Barbados" if country == "BAR"
replace country = "Barbados" if country == "BARBADOS"
replace cowcode = 53 if country == "Barbados"
replace cowcode = 53 if country == "barbados"
replace cowcode = 53 if country=="BARBADOS"

replace country = "Dominica" if country == "DMI"
replace country = "Dominica" if country == "DOMINICA"
replace cowcode = 54 if country == "Dominica"
replace cowcode = 54 if country == "dominica"
replace cowcode = 54 if country=="DOMINICA"

replace country = "Grenada" if country == "GRENADA"
replace cowcode = 55 if country == "Grenada"
replace cowcode = 55 if country == "grenada"
replace cowcode = 55 if country=="GRENADA"

replace country = "St. Lucia" if country == "STL"
replace country = "St. Lucia" if country == "SAINT LUCIA"
replace cowcode = 56 if country == "St. Lucia"|country=="Saint Lucia"
replace cowcode = 56 if country == "st. lucia"|country=="saint lucia"
replace cowcode = 56 if country=="SAINT LUCIA"

replace country = "St. Vincent and the Grenadines" if country == "STV"
replace country = "St. Vincent and the Grenadines" if country == "Saint Vincent and the Grenadines"
replace cowcode = 57 if country == "St. Vincent and the Grenadines"
replace cowcode = 57 if country == "St.Vincent & Grenadines"
replace cowcode = 57 if country == "st.vincent and the grenadines"
replace cowcode = 57 if country== "SAINT VINCENT&THE GRENADINES"

replace country = "Antigua" if country == "ANT"
replace country = "Antigua" if country == "ANTIGUA&BARBUDA"
replace cowcode = 58 if country == "Antigua and Barbuda"
replace cowcode = 58 if country == "Antigua"
replace cowcode =58 if country == "antigua"
replace cowcode = 58 if country=="ANTIGUA&BARBUDA"

replace country = "St. Kitts and Nevis" if country == "STK"
replace country = "St. Kitts and Nevis" if country == "Saint Kitts and Nevis"
replace country = "St. Kitts and Nevis" if country == "ST.KITTS&NEVIS"
replace country = "St. Kitts and Nevis" if country == "SAINT KITTIS&NEVIS"
replace cowcode=60 if country=="St. Kitts and Nevis"
replace cowcode=60 if country=="St. Kitts & Nevis"
replace cowcode = 60 if country=="ST.KITT&NEVIS"

replace country = "Mexico" if country == "MEXICO"
replace cowcode = 70 if country == "Mexico"
replace cowcode = 70 if country == "mexico"
replace cowcode = 70 if country=="MEXICO"

replace country = "Belize" if country == "BZE"
replace country = "Belize" if country == "BELIZE"
replace cowcode = 80 if country == "Belize"
replace cowcode = 80 if country == "belize"
replace cowcode=80 if country=="BELIZE"

replace country = "Guatemala" if country == "GUATEMALA"
replace cowcode = 90 if country == "Guatemala"
replace cowcode = 90 if country=="guatemala"
replace cowcode = 90 if country=="GUATEMALA"

replace country = "Honduras" if country == "HON"
replace country = "Honduras" if country == "HONDURAS"
replace cowcode = 91 if country == "Honduras"
replace cowcode = 91 if country == "honduras"
replace cowcode = 91 if country=="HONDURAS"

replace country = "El Salvador" if country == "EL SALVADOR"
replace cowcode = 92 if country == "El Salvador"
replace cowcode = 92 if country == "el salvador"
replace cowcode = 92 if country == "EL SALVADOR"

replace country = "Nicaragua" if country == "NICARAGUA"
replace cowcode = 93 if country == "Nicaragua"
replace cowcode = 93 if country == "nicaragua"
replace cowcode = 93 if country=="NICARAGUA"

replace country = "Costa Rica" if country == "COS"
replace country = "Costa Rica" if country == "COSTA RICA"
replace cowcode = 94 if country == "Costa Rica"
replace cowcode = 94 if country == "costa rica"
replace cowcode = 94 if country=="COSTA RICA"

replace country = "Panama" if country == "PAN"
replace country = "Panama" if country == "PANAMA"
replace cowcode = 95 if country == "Panama"
replace cowcode = 95 if country == "panama"
replace cowcode = 95 if country == "PANAMA"

replace country = "Colombia" if country == "COL"
replace country = "Colombia" if country == "COLUMBIA"
replace cowcode = 100 if country == "Colombia"
replace cowcode = 100 if country == "Columbia"
replace cowcode = 100 if country == "colombia"
replace cowcode = 100 if country == "columbia"
replace cowcode = 100 if country == "COLOMBIA"

replace country = "Venezuela" if country == "VEN"
replace country = "Venezuela" if country == "Venezuela (Bolivarian Republic of)"
replace country = "Venezuela" if country == "VENEZUELA"
replace country = "Venezuela" if country == "Venezuela, Republica Bolivariana de"
replace cowcode = 101 if country == "Venezuela"
replace cowcode = 101 if country == "Venezuela, RB"
replace cowcode = 101 if country == "venezuela"
replace cowcode = 101 if country == "VENEZUELA"

replace country = "Guyana" if country == "GUYANA"
replace cowcode = 110 if country == "Guyana"
replace cowcode = 110 if country == "guyana"
replace cowcode = 110 if country == "GUYANA"

replace country = "Suriname" if country == "SUR"
replace country = "Suriname" if country == "SURINAME"
replace cowcode=115 if country=="Suriname"
replace cowcode = 115 if country == "Surinam"
replace cowcode = 115 if country== "suriname"
replace cowcode = 115 if country == "surinam"
replace cowcode = 115 if country == "SURINAM"

replace country = "Ecuador" if country == "ECU"
replace country = "Ecuador" if country == "ECUADOR"
replace cowcode = 130 if country == "Ecuador"
replace cowcode = 130 if country == "ecuador"
replace cowcode = 130 if country == "ECUADOR"

replace country = "Peru" if country == "PER"
replace country = "Peru" if country == "PERU"
replace cowcode = 135 if country == "Peru"
replace cowcode = 135 if country == "peru"
replace cowcode = 135 if country == "PERU"

replace country = "Brazil" if country == "BRAZIL"
replace cowcode = 140 if country == "Brazil"
replace cowcode = 140 if country == "brazil"
replace cowcode = 140 if country == "BRAZIL"

replace country = "Bolivia" if country == "BOLIVIA"
replace country = "Bolivia" if country == "Bolivia (Plurinational State of)"
replace cowcode = 145 if country == "Bolivia"
replace cowcode = 145 if country == "bolivia"
replace cowcode = 145 if country == "BOLIVIA"

replace country = "Paraguay" if country == "PAR"
replace country = "Paraguay" if country == "PARAGUAY"
replace cowcode = 150 if country == "Paraguay"
replace cowcode = 150 if country == "paraguay"
replace cowcode = 150 if country == "PARAGUAY"

replace country = "Chile" if country == "CHI"
replace country = "Chile" if country == "CHILE"
replace cowcode = 155 if country == "Chile"
replace cowcode = 155 if country == "chile"
replace cowcode = 155 if country == "CHILE"

replace country = "Argentina" if country == "ARG"
replace country = "Argentina" if country == "ARGENTINA"
replace cowcode = 160 if country == "Argentina"
replace cowcode = 160 if country == "argentina"
replace cowcode = 160 if country == "ARGENTINA"

replace country = "Uruguay" if country == "URU"
replace country = "Uruguay" if country == "URUGUAY"
replace cowcode = 165 if country == "Uruguay"
replace cowcode = 165 if country == "uruguay"
replace cowcode = 165 if country == "URUGUAY"

replace country = "United Kingdom" if country == "UKS"
replace country = "United Kingdom" if country == "UKI"
replace country = "United Kingdom" if country == "UKE"
replace country = "United Kingdom" if country == "NORTHERN IRELAND"
replace country = "United Kingdom" if country == "England"
replace country = "United Kingdom" if country == "Scotland"
replace country = "United Kingdom" if country == "United Kingdom (Scotland)"
replace country = "United Kingdom" if country == "United Kingdom (Northern Ireland)"
replace country = "United Kingdom" if country == "SCOTLAND"
replace country = "United Kingdom" if country == "UK - Northern Ireland"
replace country = "United Kingdom" if country == "UK - Scotland"
replace country = "United Kingdom" if country == "England & Wales"
replace country = "United Kingdom" if country == "United Kingdom (England and Wales)"
replace country = "United Kingdom" if country == "ENGLAND & WALES" 
replace country = "United Kingdom" if country == "United Kingdom of Great Britain and Northern Ireland"
replace cowcode = 200 if country == "United Kingdom"
replace cowcode = 200 if country == "united kingdom"
replace cowcode = 200 if country == "UNITED KINGDOM"
replace cowcode = 200 if country == "ENGLAND & WALES"

replace country = "Ireland" if country == "IRE"
replace country = "Ireland" if country == "IRELAND"
replace cowcode = 205 if country == "Ireland"
replace cowcode = 205 if country == "ireland"
replace cowcode = 205 if country == "IRELAND"

replace country = "Netherlands" if country == "NET"
replace country = "Netherlands" if country == "NETHERLANDS"
replace cowcode = 210 if country == "Netherlands"
replace cowcode = 210 if country == "netherlands"
replace cowcode = 210 if country == "NETHERLANDS"

replace country = "Belgium" if country == "BEL"
replace country = "Belgium" if country == "BELGIUM"
replace cowcode = 211 if country == "Belgium"
replace cowcode = 211 if country == "belgium"

replace country = "Luxembourg" if country == "LUXEMBOURG"
replace cowcode = 212 if country == "Luxembourg"
replace cowcode = 212 if country == "luxembourg"

replace country = "France" if country == "FRA"
replace country = "France" if country == "FRANCE"
replace cowcode = 220 if country == "France"
replace cowcode = 220 if country == "france"

replace country = "Monaco" if country == "MONACO"
replace cowcode = 221 if country == "Monaco"
replace cowcode = 221 if country == "monaco"

replace country = "Liechtenstein" if country == "LIECHTENSTEIN"
replace cowcode = 223 if country == "Liechtenstein"|country=="Lichtenstein"
replace cowcode = 223 if country == "lichtenstein"

replace country = "Switzerland" if country == "SWI"
replace country = "Switzerland" if country == "SWITZERLAND"
replace cowcode = 225 if country == "Switzerland"
replace cowcode = 225 if country == "switzerland"

replace country = "Spain" if country == "SPA"
replace country = "Spain" if country == "SPAIN"
replace cowcode = 230 if country == "Spain"
replace cowcode = 230 if country == "spain"

replace country = "Andorra" if country == "ANDORRA"
replace cowcode = 232 if country == "Andorra"
replace cowcode = 232 if country == "andorra"

replace country = "Portugal" if country == "POR"
replace country = "Portugal" if country == "PORTUGAL"
replace cowcode = 235 if country == "Portugal"
replace cowcode = 235 if country == "portugal"

replace cowcode = 260 if country == "Germany"
replace cowcode = 260 if country=="West Germany"
replace cowcode = 260 if country=="Germany Federal Republic of"
replace cowcode = 260 if country=="Germany Federal Republic"
replace cowcode = 260 if country == "germany"
replace cowcode = 260 if country == "west germany"
replace cowcode = 260 if country == "germany federal republic"
replace cowcode = 260 if country == "germany federal republic of"

replace country = "East Germany" if country == "GDR"
replace cowcode=265 if country=="East Germany"
replace cowcode=265 if country=="German Democratic Republic"
replace cowcode = 265 if country == "east germany"
replace cowcode = 265 if country == "german democratic republic"

replace country = "Poland" if country == "POL"
replace country = "Poland" if country == "POLAND"
replace cowcode = 290 if country == "Poland"
replace cowcode = 290 if country == "poland"

replace country = "Austria" if country == "AUS"
replace country = "Austria" if country == "AUSTRIA"
replace cowcode = 305 if country == "Austria"
replace cowcode = 305 if country == "austria"

replace country = "Hungary" if country == "HUN"
replace country = "Hungary" if country == "HUNGARY"
replace cowcode = 310 if country == "Hungary"
replace cowcode = 310 if country == "hungary"

replace cowcode = 315 if country == "Czech Republic"
replace cowcode = 315 if country == "Czechoslovakia"
replace cowcode = 315 if country == "czech republic"
replace cowcode = 315 if country == "czechoslovakia"

replace country = "Slovakia" if country == "SLOVAKIA"
replace country = "Slovakia" if country == "SLOVAK REPUBLIC"
replace cowcode = 317 if country == "Slovak Republic"
replace cowcode = 317 if country == "Slovakia"
replace cowcode = 317 if country == "slovak republic"
replace cowcode = 317 if country == "slovakia"

replace country = "Italy" if country == "ITA"
replace country = "Italy" if country == "ITALY"
replace cowcode = 325 if country == "Italy"
replace cowcode = 325 if country == "italy"

replace country = "San Marino" if country == "SAN MARINO"
replace cowcode=331 if country=="San Marino"
replace cowcode=331 if country=="san marino"

replace country = "Malta" if country == "MAT"
replace country = "Malta" if country == "MALTA"
replace cowcode = 338 if country == "Malta"
replace cowcode = 338 if country == "malta"

replace country = "Albania" if country == "ALBANIA"
replace cowcode = 339 if country == "Albania"
replace cowcode = 339 if country == "albania"

replace country = "Montenegro" if country == "Montenegro, Republic of"
replace cowcode = 341 if country == "Montenegro"

replace country = "Macedonia" if country == "REP OF MACEDONIA"
replace country = "Macedonia" if country == "The former Yugoslav Republic of Macedonia"
replace country = "Macedonia" if country == "Macedonia, The Former Yugoslav"
replace country = "Macedonia" if country == "Macedonia, The Former Yugoslav "
replace cowcode = 343 if country=="Macedonia" 
replace cowcode = 343 if country=="Macedonia, FYR"
replace cowcode = 343 if country=="macedonia" 
replace cowcode = 343 if country=="macedonia, fyr"  

replace country = "Croatia" if country == "CROATIA"
replace cowcode = 344 if country == "Croatia"
replace cowcode = 344 if country == "croatia"

replace country = "Yugoslavia" if country == "YUG"
replace country = "Yugoslavia" if country == "FORMER YUGOSLAV"
replace country = "Yugoslavia" if country == "PRESENT YUGOSLA"
replace country = "Yugoslavia" if country == "YUGOSLAVIA"
replace cowcode = 345 if country == "Yugoslavia"
replace cowcode = 345 if country == "Serbia and Montenegro"
replace cowcode = 345 if country == "Serbia"
*replace cowcode = 345 if country == "Montenegro"
replace cowcode = 345 if country == "Yugoslavia, FR (Serbia/Montenegro)" 
replace cowcode = 345 if country == "Serbia & Montenegro"
replace cowcode = 345 if country == "yugoslavia"
replace cowcode = 345 if country == "serbia and montenegro"
replace cowcode = 345 if country == "yugoslavia, fr (serbia/montenegro)" 
replace cowcode = 345 if country == "serbia & montenegro"
replace cowcode = 345 if country == "Serbia, Republic of"
replace cowcode = 345 if country == "Republic of Serbia"

replace country = "Bosnia" if country == "BOSNIA&HERZEGOVINA"
replace country = "Bosnia" if country == "BOSNIA&HERZOGOVINA"
replace cowcode = 346 if country=="Bosnia and Herzegovina"
replace cowcode = 346 if country=="bosnia and herzegovina"
replace cowcode = 346 if country == "Bosnia"
replace cowcode = 346 if country == "bosnia"

replace cowcode = 347 if country == "Kosovo"

replace country = "Slovenia" if country == "SLOVANIA"
replace country = "Slovenia" if country == "SLOVENIA"
replace cowcode = 349 if country == "Slovenia"
replace cowcode = 349 if country == "slovenia"

replace country = "Greece" if country == "GRE"
replace country = "Greece" if country == "GREECE"
replace cowcode = 350 if country == "Greece"
replace cowcode = 350 if country == "greece"

replace country = "Cyprus" if country == "CYP"
replace country = "Cyprus" if country == "CYPRUS"
replace cowcode = 352 if country == "Cyprus"
replace cowcode = 352 if country == "cyprus"

replace country = "Bulgaria" if country == "BUL"
replace country = "Bulgaria" if country == "BULGARIA"
replace cowcode = 355 if country == "Bulgaria"
replace cowcode = 355 if country == "bulgaria"

replace country = "Moldova" if country == "Moldova, Republic of"
replace country = "Moldova" if country == "Republic of Moldova"
replace country = "Moldova" if country == "REP OF MOLDOVA"
replace country = "Moldova" if country == "MOLDOVA"
replace country = "Moldova" if country == "Moldova, Rep. Of"
replace cowcode = 359 if country=="Moldova" 
replace cowcode = 359 if country=="moldova" 

replace country = "Romania" if country == "ROM"
replace country = "Romania" if country == "ROMANIA"
replace cowcode = 360 if country == "Romania"
replace cowcode = 360 if country == "romania"
replace cowcode = 360 if country == "Rumania"
replace cowcode = 360 if country == "rumania"

replace country = "Russia" if country == "USR"
replace country = "Russia" if country == "Russian Federation"
replace country = "Russia" if country == "RUSSIAN REPUBLC"
replace country = "Russia" if country == "RUSSIAN REPUBLIC"
replace country = "Russia" if country == "RUSSIAN FEDERATION"
replace cowcode = 365 if country == "Russia"
replace cowcode = 365 if country == "Russian Federation"
replace cowcode = 365 if country=="USSR"
replace cowcode = 365 if country == "russia"
replace cowcode = 365 if country == "russian federation"
replace cowcode = 365 if country=="ussr"

replace country = "Estonia" if country == "ESTONIA"
replace cowcode = 366 if country == "Estonia"
replace cowcode = 366 if country == "estonia"

replace country = "Latvia" if country == "LATVIA"
replace cowcode = 367 if country == "Latvia"
replace cowcode = 367 if country == "latvia"

replace country = "Lithuania" if country == "LITHUANIA"
replace cowcode = 368 if country == "Lithuania"
replace cowcode = 368 if country == "lithuania"

replace country = "Ukraine" if country == "UKR"
replace country = "Ukraine" if country == "UKRAINE"
replace cowcode = 369 if country == "Ukraine"
replace cowcode = 369 if country == "ukraine"

replace country = "Belarus" if country == "BYE"
replace country = "Belarus" if country == "BELARUS"
replace cowcode = 370 if country == "Belarus"
replace cowcode = 370 if country == "belarus"

replace country = "Armenia" if country == "ARMENIA"
replace cowcode = 371 if country == "Armenia"
replace cowcode = 371 if country == "armenia"

replace country = "Georgia" if country == "GEORGIA"
replace cowcode = 372 if country == "Georgia"
replace cowcode = 372 if country == "georgia"

replace country = "Azerbaijan" if country == "AZERBAIJAN"
replace cowcode = 373 if country == "Azerbaijan"
replace cowcode = 373 if country == "azerbaijan"

replace country = "Finland" if country == "FIN"
replace country = "Finland" if country == "FINLAND"
replace cowcode = 375 if country == "Finland"
replace cowcode = 375 if country == "finland"

replace country = "Sweden" if country == "SWE"
replace country = "Sweden" if country == "SWEDEN"
replace cowcode = 380 if country == "Sweden"
replace cowcode = 380 if country == "sweden"

replace country = "Norway" if country == "NOR"
replace country = "Norway" if country == "NORWAY"
replace cowcode = 385 if country == "Norway"
replace cowcode = 385 if country == "norway"

replace country = "Denmark" if country == "DEN"
replace country = "Denmark" if country == "DENMARK"
replace cowcode = 390 if country == "Denmark"
replace cowcode = 390 if country == "denmark"

replace country = "Iceland" if country == "ICELAND"
replace cowcode = 395 if country == "Iceland"
replace cowcode = 395 if country == "iceland"

replace country = "Cape Verde" if country == "CVI"
replace country = "Cape Verde" if country == "CAPE VERDE"
replace cowcode = 402 if country == "Cape Verde"
replace cowcode = 402 if country == "cape verde"

replace country = "Sao Tome and Principe" if country == "SAO TOME&PRINCIPE"
replace cowcode = 403 if country == "Sao Tome and Principe"
replace cowcode = 403 if country == "Sao Tome & Principe"
replace cowcode = 403 if country == "sao tome and principe"
replace cowcode = 403 if country == "sao tome & principe"

replace country = "Guinea-Bissau" if country == "GUINEA-BISSAU"
replace cowcode = 404 if country == "Guinea-Bissau"
replace cowcode = 404 if country == "guinea-bissau"

replace country = "Equatorial Guinea" if country == "EQUATORIAL GUINEA"
replace country = "Equatorial Guinea" if country == "EUQUATORIAL GUINEA"
replace cowcode = 411 if country == "Equatorial Guinea"
replace cowcode = 411 if country == "equatorial guinea"


replace cowcode = 420 if country == "Gambia"
replace cowcode = 420 if country=="The Gambia" 
replace cowcode = 420 if country=="Gambia, The" 
replace cowcode = 420 if country == "gambia"
replace cowcode = 420 if country=="the gambia" 
replace cowcode = 420 if country=="gambia, the"

replace country = "Mali" if country == "MALI"
replace cowcode = 432 if country == "Mali"
replace cowcode = 432 if country == "mali"

replace country = "Senegal" if country == "SEN"
replace country = "Senegal" if country == "SENEGAL"
replace cowcode = 433 if country == "Senegal"
replace cowcode = 433 if country == "senegal"

replace country = "Benin" if country == "BENIN"
replace cowcode = 434 if country == "Benin"
replace cowcode = 434 if country == "benin"


replace country = "Mauritania" if country == "MAURITANIA"
replace cowcode = 435 if country == "Mauritania"
replace cowcode = 435 if country == "mauritania"

replace country = "Niger" if country == "NIGER"
replace cowcode = 436 if country == "Niger"
replace cowcode = 436 if country == "niger"


replace cowcode = 437 if country == "Ivory Coast"
replace cowcode = 437 if country == "Cote d'Ivoire"
replace cowcode = 437 if country == "Cote d`Ivoire"
replace cowcode = 437 if country == "ivory coast"
replace cowcode = 437 if country == "cote d'ivoire"
replace cowcode = 437 if country == "cote d`ivoire"

replace country = "Guinea" if country == "GUINEA"
replace cowcode = 438 if country == "Guinea"
replace cowcode = 438 if country == "guinea"

replace country = "Burkina Faso" if country == "BURKINA FASO"
replace cowcode = 439 if country == "Burkina Faso"
replace cowcode = 439 if country == "burkina faso"
replace cowcode = 439 if country == "Burkina faso"

replace country = "Liberia" if country == "LIR"
replace country = "Liberia" if country == "LIBERIA"
replace cowcode = 450 if country == "Liberia"
replace cowcode = 450 if country == "liberia"

replace country = "Sierra Leone" if country == "SIL"
replace country = "Sierra Leone" if country == "SIERRA LEONE"
replace cowcode = 451 if country == "Sierra Leone"
replace cowcode = 451 if country == "sierra leone"

replace country = "Ghana" if country == "GHA"
replace country = "Ghana" if country == "GHANA"
replace cowcode = 452 if country == "Ghana"
replace cowcode = 452 if country == "ghana"

replace country = "Togo" if country == "TOGO"
replace cowcode = 461 if country == "Togo"
replace cowcode = 461 if country == "togo"

replace country = "Cameroon" if country == "CAMEROON"
replace cowcode = 471 if country == "Cameroon"
replace cowcode = 471 if country == "cameroon"

replace country = "Nigeria" if country == "NIGERIA"
replace cowcode = 475 if country == "Nigeria"
replace cowcode = 475 if country == "nigeria"

replace country = "Gabon" if country == "GABON"
replace cowcode = 481 if country == "Gabon"
replace cowcode = 481 if country == "gabon"

replace country = "Central African Republic" if country == "CENTRAL AFRICAN REP"
replace cowcode = 482 if country == "Central African Republic"
replace cowcode = 482 if country == "central african republic"
replace cowcode = 482 if country == "CAR"

replace country = "Chad" if country == "CHD"
replace country = "Chad" if country == "CHAD"
replace cowcode = 483 if country == "Chad"
replace cowcode = 483 if country == "chad"


replace country = "Congo Republic" if country=="Congo Republic of"
replace cowcode = 484 if country == "Congo Republic"
replace cowcode = 484 if country == "Congo, Rep."
replace cowcode = 484 if country=="Congo"
replace cowcode = 484 if country=="Congo, Republic of"
replace country = "congo republic" if country=="congo republic of"
replace cowcode = 484 if country == "congo republic"
replace cowcode = 484 if country == "congo, rep."
replace cowcode = 484 if country=="congo"
replace cowcode = 484 if country=="congo, republic of"
replace cowcode = 484 if country == "Republic of Congo"

replace cowcode = 490 if country == "Congo Democratic Republic"
replace cowcode = 490 if country=="Congo Democratic Republic of"
replace cowcode = 490 if country=="Congo, Dem. Rep."
replace cowcode = 490 if country=="Democratic Republic of the Congo"
replace cowcode = 490 if country == "congo democratic republic"
replace cowcode = 490 if country=="congo democratic republic of"
replace cowcode = 490 if country=="congo, dem. rep."|country=="congo, democratic republic of"
replace cowcode = 490 if country=="democratic republic of the congo"

replace country = "Uganda" if country == "UGA"
replace country = "Uganda" if country == "UGANDA"
replace cowcode = 500 if country == "Uganda"
replace cowcode = 500 if country == "uganda"

replace country = "Kenya" if country == "KENYA"
replace cowcode = 501 if country == "Kenya"
replace cowcode = 501 if country == "kenya"

replace country = "Tanzania" if country == "URT"
replace country = "Tanzania" if country == "Tanzania, United Republic of "
replace country = "Tanzania" if country == "Tanzania, United Republic of"
replace country = "Tanzania" if country == "UNITED REP OF TANZANIA"
replace country="Tanzania" if country == "Tanzania, U. Rep. Of"
replace cowcode = 510 if country == "Tanzania"
replace cowcode = 510 if country == "tanzania"

replace country = "Burundi" if country == "BDI"
replace country = "Burundi" if country == "BURUNDI"
replace cowcode = 516 if country == "Burundi"
replace cowcode = 516 if country == "burundi"

replace country = "Rwanda" if country == "RWANDA"
replace cowcode = 517 if country == "Rwanda"
replace cowcode = 517 if country == "rwanda"

replace country = "Somalia" if country == "SOMALIA"
replace cowcode = 520 if country == "Somalia"
replace cowcode = 520 if country == "somalia"

replace country = "Djibouti" if country == "DJIBOUTI"
replace cowcode = 522 if country == "Djibouti"
replace cowcode = 522 if country == "djibouti"

replace country = "Ethiopia" if country == "ETHIOPIA"
replace cowcode = 530 if country == "Ethiopia"
replace cowcode = 530 if country == "ethiopia"

replace country = "Eritrea" if country == "ERITREA"
replace cowcode = 531 if country == "Eritrea"
replace cowcode = 531 if country == "eritrea"

replace country = "Angola" if country == "ANGOLA"
replace cowcode = 540 if country == "Angola"
replace cowcode = 540 if country == "angola"

replace country = "Mozambique" if country == "MOZAMBIQUE"
replace cowcode = 541 if country == "Mozambique"
replace cowcode = 541 if country == "mozambique"

replace country = "Zambia" if country == "ZAM"
replace country = "Zambia" if country == "ZAMBIA"
replace cowcode = 551 if country == "Zambia"
replace cowcode = 551 if country == "zambia"

replace country = "Zimbabwe" if country == "ZIM"
replace country = "Zimbabwe" if country == "ZIMBABWE"
replace cowcode = 552 if country == "Zimbabwe"
replace cowcode = 552 if country == "zimbabwe"

replace country = "Malawi" if country == "MLW"
replace country = "Malawi" if country == "MALAWI"
replace cowcode = 553 if country == "Malawi"
replace cowcode = 553 if country == "malawi"

replace country = "South Africa" if country == "SAF"
replace country = "South Africa" if country == "SOUTH AFRICA"
replace cowcode = 560 if country == "South Africa"
replace cowcode = 560 if country == "south africa"


replace cowcode = 565 if country == "Namibia"
replace cowcode = 565 if country == "namibia"

replace country = "Lesotho" if country == "LES"
replace country = "Lesotho" if country == "LESOTHO"
replace cowcode = 570 if country == "Lesotho"
replace cowcode = 570 if country == "lesotho"

replace country = "Botswana" if country == "BOT"
replace country = "Botswana" if country == "BOTSWANA"
replace cowcode = 571 if country == "Botswana"
replace cowcode = 571 if country == "botswana"

replace country = "Swaziland" if country == "SWAZILAND"
replace cowcode = 572 if country == "Swaziland"
replace cowcode = 572 if country == "swaziland"

replace country = "Madagascar" if country == "MAG"
replace country = "Madagascar" if country == "MADAGASCAR"
replace cowcode = 580 if country == "Madagascar"
replace cowcode = 580 if country == "madagascar"

replace country = "Comoros" if country == "COMOROS"
replace cowcode = 581 if country == "Comoros"
replace cowcode = 581 if country == "comoros"

replace country = "Mauritius" if country == "MAR"
replace country = "Mauritius" if country == "MAURITIUS"
replace cowcode = 590 if country == "Mauritius"
replace cowcode = 590 if country == "mauritius"

replace country = "Seychelles" if country == "SEY"
replace country = "Seychelles" if country == "Seychilles"
replace country = "Seychelles" if country == "SEYCHILLES"
replace country = "Seychelles" if country == "SEYCHELLES"
replace cowcode = 591 if country == "Seychelles"
replace cowcode = 591 if country == "seychelles"

replace country = "Morocco" if country == "MOR"
replace country = "Morocco" if country == "MOROCCO"
replace cowcode = 600 if country == "Morocco"
replace cowcode = 600 if country == "morocco"

replace country = "Algeria" if country == "ALGERIA"
replace cowcode = 615 if country == "Algeria"
replace cowcode = 615 if country == "algeria"

replace country = "Tunisia" if country == "TUNISIA"
replace cowcode = 616 if country == "Tunisia"
replace cowcode = 616 if country == "tunisia"

replace country = "Libya" if country == "LIBYAN ARAB JAMAHIRIYA"
replace cowcode = 620 if country == "Libya"
replace cowcode = 620 if country == "libya"

replace country = "Sudan" if country == "SUD"
replace country = "Sudan" if country == "SUDAN"
replace cowcode = 625 if country == "Sudan"
replace cowcode = 625 if country == "sudan"

replace country = "South Sudan" if country == "S. Sudan"
replace cowcode = 626 if country == "South Sudan"


replace cowcode = 630 if country == "Iran"
replace cowcode = 630 if country == "Iran, Islamic Rep."
replace cowcode = 630 if country == "Iran, Islamic Republic"
replace cowcode = 630 if country == "iran"
replace cowcode = 630 if country == "iran, islamic rep."
replace cowcode = 630 if country == "iran, islamic republic"

replace country = "Turkey" if country == "TUR"
replace country = "Turkey" if country == "TURKEY"
replace cowcode = 640 if country == "Turkey"
replace cowcode = 640 if country == "turkey"

replace country = "Iraq" if country == "IRAQ"
replace cowcode = 645 if country == "Iraq"
replace cowcode = 645 if country == "iraq"

replace country = "Egypt" if country == "EGY"
replace country = "Egypt" if country == "EGYPT"
replace cowcode = 651 if country == "Egypt"
replace cowcode = 651 if country == "Egypt, Arab Rep."
replace cowcode = 651 if country == "Egypt, Arab Republic"
replace cowcode = 651 if country == "egypt"
replace cowcode = 651 if country == "egypt, arab rep."
replace cowcode = 651 if country == "egypt, arab republic"

replace country = "Syria" if country == "SYR"
replace country = "Syria" if country == "SYRIAN ARAB REP"
replace country = "Syria" if country == "SYRIA"
replace cowcode = 652 if country == "Syria"
replace cowcode = 652 if country == "Syrian Arab Republic"
replace cowcode = 652 if country == "Syrian Arab Rep."
replace cowcode = 652 if country == "syria"
replace cowcode = 652 if country == "syrian arab republic"
replace cowcode = 652 if country == "syrian arab rep."

replace country = "Lebanon" if country == "LEBANON"
replace cowcode = 660 if country == "Lebanon"
replace cowcode = 660 if country == "lebanon"

replace country = "Jordan" if country == "JOR"
replace country = "Jordan" if country == "JORDAN"
replace cowcode = 663 if country == "Jordan"
replace cowcode = 663 if country == "jordan"


replace country = "Israel" if country == "ISR"
replace country = "Israel" if country == "ISRAEL"
replace cowcode = 666 if country == "Israel"
replace cowcode = 666 if country == "israel"

replace country = "Saudi Arabia" if country == "SAUDI ARABIA"
replace cowcode = 670 if country == "Saudi Arabia"
replace cowcode = 670 if country == "saudi arabia"

replace country = "Kuwait" if country == "KUW"
replace country = "Kuwait" if country == "KUWAIT"
replace cowcode = 690 if country == "Kuwait"
replace cowcode = 690 if country == "kuwait"

replace country = "Bahrain" if country == "BAH"
replace country = "Bahrain" if country == "BAHRAIN"
replace country = "Bahrain" if country == "Bahrain, Kingdom of"
replace cowcode = 692 if country == "Bahrain"
replace cowcode = 692 if country == "bahrain"

replace country = "Qatar" if country == "QAT"
replace country = "Qatar" if country == "QATAR"
replace cowcode = 694 if country == "Qatar"
replace cowcode = 694 if country == "qatar"

replace country = "United Arab Emirates" if country == "UAE"
replace country = "United Arab Emirates" if country == "UNITED ARAB EMIRATES"
replace cowcode = 696 if country == "United Arab Emirates"
replace cowcode = 696 if country == "united arab emirates"
replace cowcode = 696 if country == "UAE"

replace country = "Oman" if country == "OMAN"
replace cowcode = 698 if country == "Oman"
replace cowcode = 698 if country == "oman"

replace country = "Afghanistan" if country=="AFGHANISTAN"
replace cowcode = 700 if country == "Afghanistan"
replace cowcode = 700 if country == "afghanistan"

replace country = "Turkmenistan" if country == "TURKMENISTAN"
replace cowcode = 701 if country == "Turkmenistan"
replace cowcode = 701 if country == "turkmenistan"

replace country = "Tajikistan" if country == "TAJIKSTAN"
replace country = "Tajikistan" if country == "TAJIKISTAN"
replace cowcode = 702 if country == "Tajikistan"
replace cowcode = 702 if country == "tajikistan"

replace country = "Kyrgystan" if country == "KYRGYZTAN"
replace country = "Kyrgystan" if country == "KYRGYZSTAN"
replace country = "Kyrgistan" if country == "KYRGISTAN"
replace cowcode = 703 if country == "Kyrgyz Republic"
replace cowcode = 703 if country == "Kyrgyzstan"
replace cowcode = 703 if country == "kyrgyz republic"
replace cowcode = 703 if country == "kyrgyzstan"
replace cowcode = 703 if country == "Kyrgystan"

replace country = "Uzbekistan" if country == "UZBEKISTAN"
replace cowcode = 704 if country == "Uzbekistan"
replace cowcode = 704 if country == "uzbekistan"

replace country = "Kazakhstan" if country == "KAZAKSTAN"
replace country = "Kazakhstan" if country == "KAZAKHSTAN"
replace cowcode = 705 if country == "Kazakhstan"
replace cowcode = 705 if country == "kazakhstan"

replace country = "China" if country == "CPR"
replace country = "China" if country == "CHINA"
replace country = "China" if country == "China, P.R.: Mainland"
replace cowcode = 710 if country == "China"
replace cowcode = 710 if country == "china"

replace country = "Mongolia" if country == "MONGOLIA"
replace cowcode = 712 if country == "Mongolia"
replace cowcode = 712 if country == "mongolia"

replace country = "Taiwan" if country == "Taiwan Province of China"
replace cowcode = 713 if country == "Taiwan"
replace cowcode = 713 if country == "taiwan"

replace country = "North Korea" if country == "Korea North"
replace country = "North Korea" if country == "Korea, Democratic Peoples Republic of"
replace country = "North Korea" if country == "DEM PEO REP OF KOREA"
replace country = "North Korea" if country == "Korea, Democratic Peoples Republic of  "
replace country = "North Korea" if country == "Korea, Democratic Peoples Republic of "
replace cowcode = 731 if country=="Korea, Dem. Rep."
replace cowcode = 731 if country=="Korea, Democratic Republic"
replace cowcode = 731 if country=="Korea Democratic Republic"
replace cowcode = 731 if country=="Korea, North"
replace cowcode = 731 if country=="korea, dem. rep."
replace cowcode = 731 if country=="korea, democratic republic"
replace cowcode = 731 if country=="korea democratic republic"
replace cowcode = 731 if country=="korea, north"
replace cowcode= 731 if country == "north korea"
replace cowcode = 731 if country == "North Korea"

replace country = "South Korea" if country == "Korea South"
replace country = "South Korea" if country == "Republic of Korea"
replace country = "South Korea" if country == "ROK"
replace country = "South Korea" if country == "Korea, Republic of"
replace country = "South Korea" if country == "Korea, Republic of "
replace country = "South Korea" if country == "REP. OF KOREA"
replace country = "South Korea" if country == "REP OF KOREA"
replace country = "South Korea" if country == "Korea, Rep. Of"
replace country = "South Korea" if country == "Korea, Republic of  "
replace country = "South Korea" if country == "Korea, Republic of "
replace country = "South Korea" if country == "Korea"
replace cowcode = 732 if country=="Korea Republic of"
replace cowcode = 732 if country=="Korea, Republic of"
replace cowcode = 732 if country=="Korea, Rep."
replace cowcode = 732 if country=="Korea, South"
replace cowcode = 732 if country=="korea republic of"
replace cowcode = 732 if country=="korea, republic of"
replace cowcode = 732 if country=="korea, rep."
replace cowcode = 732 if country=="korea, south"
replace cowcode = 732 if country=="South Korea"
replace cowcode = 732 if country=="south korea"

replace country = "Japan" if country == "JPN"
replace country = "Japan" if country == "JAPAN"
replace cowcode = 740 if country == "Japan"
replace cowcode = 740 if country == "japan"

replace country = "India" if country == "IND"
replace country = "India" if country == "INDIA"
replace cowcode = 750 if country == "India"
replace cowcode = 750 if country == "india"

replace country = "Bhutan" if country == "BHUTAN"
replace cowcode = 760 if country == "Bhutan"
replace cowcode = 760 if country == "bhutan"

replace country = "Pakistan" if country == "PAK"
replace country = "Pakistan" if country == "PAKISTAN"
replace cowcode = 770 if country=="Pakistan"
replace cowcode = 770 if country=="pakistan"

replace country = "Bangladesh" if country == "BGD"
replace country = "Bangladesh" if country == "BANGLADESH"
replace cowcode = 771 if country == "Bangladesh"
replace cowcode = 771 if country == "bangladesh"

replace country = "Myanmar" if country == "Myanmar (Burma)"
replace country = "Myanmar" if country == "MYANMAR"
replace cowcode = 775 if country == "Myanmar"
replace cowcode = 775 if country=="Burma" 
replace cowcode = 775 if country == "myanmar"
replace cowcode = 775 if country=="burma" 

replace country = "Yemen" if country == "Yemen North"
replace country = "Yemen" if country == "Yemen South"
replace country = "Yemen" if country == "YEMEN"
replace cowcode = 679 if country=="Yemen People's Republic" 
replace cowcode = 679 if country=="Yemen" 
replace cowcode = 679 if country=="Yemen, Rep." 
replace cowcode = 679 if country=="Yemen Republic" 
replace cowcode = 679 if country=="yemen people's republic" 
replace cowcode = 679 if country=="yemen" 
replace cowcode = 679 if country=="yemen, rep." 
replace cowcode = 679 if country=="yemen republic"
replace cowcode = 679 if country=="Yemen, Republic of"



replace country = "Sri Lanka" if country == "SRL"
replace country = "Sri Lanka" if country == "SRI LANKA"
replace cowcode = 780 if country == "Sri Lanka"
replace cowcode = 780 if country == "sri lanka"

replace country = "Maldives" if country == "MDV"
replace country = "Maldives" if country == "MALDIVES"
replace cowcode=781 if country=="Maldives"
replace cowcode=781 if country=="maldives"

replace country = "Nepal" if country == "NEP"
replace country = "Nepal" if country == "NEPAL"
replace cowcode = 790 if country == "Nepal"
replace cowcode = 790 if country == "nepal"

replace country = "Thailand" if country == "THA"
replace country = "Thailand" if country == "THAILAND"
replace cowcode = 800 if country == "Thailand"
replace cowcode = 800 if country == "thailand"

replace country = "Cambodia" if country == "CAMBODIA"
replace cowcode = 811 if country == "Cambodia"
replace cowcode = 811 if country == "cambodia"

replace country = "Laos" if country == "LAO PEOPLE DEM REP"
replace country = "Laos" if country == "Lao, P.D.R."
replace cowcode = 812 if country == "Laos"
replace cowcode = 812 if country == "Lao PDR"
replace cowcode = 812 if country == "laos"
replace cowcode = 812 if country == "lao pdr"

replace country = "Vietnam" if country == "Vietnam North"
replace country = "Vietnam" if country == "VIET NAM"
replace cowcode = 818 if country == "Vietnam"
replace cowcode = 818 if country == "vietnam"
replace cowcode = 818 if country == "south vietnam"
replace cowcode = 818 if country == "South Vietnam"

replace country = "Malaysia" if country == "MAL"
replace country = "Malaysia" if country == "MALAYSIA"
replace cowcode = 820 if country == "Malaysia"
replace cowcode = 820 if country == "malaysia"

replace country = "Singapore" if country == "SIN"
replace country = "Singapore" if country == "SINGAPORE"
replace cowcode = 830 if country == "Singapore"
replace cowcode = 830 if country == "singapore"

replace country = "Brunei" if country == "BRU"
replace country = "Brunei Darussalam" if country == "BRUNEI DARUSSALAM"
replace cowcode = 835 if country == "Brunei"|country=="Brunei Darussalam" 
replace cowcode = 835 if country == "brunei"|country=="brunei darussalam" 

replace country = "Philippines" if country == "PHI"
replace country = "Philippines" if country == "PHILIPPINES"
replace cowcode = 840 if country == "Philippines"
replace cowcode = 840 if country == "philippines"
replace cowcode = 840 if country == "phillipines"
replace cowcode = 840 if country == "Phillipines"

replace country = "Indonesia" if country == "INS"
replace country = "Indonesia" if country == "INDONESIA"
replace cowcode = 850 if country == "Indonesia"
replace cowcode = 850 if country == "indonesia"


replace cowcode=860 if country=="Timor-Leste"
replace cowcode=860 if country=="East Timor"
replace cowcode=860 if country=="timor-leste"
replace cowcode=860 if country=="east timor"

replace country = "Australia" if country == "AUL"
replace country = "Australia" if country == "AUSTRALIA"
replace cowcode = 900 if country == "Australia"
replace cowcode = 900 if country == "australia"

replace country = "Papua New Guinea" if country == "PAPUA NEW GUINEA"
replace cowcode = 910 if country == "Papua New Guinea"
replace cowcode = 910 if country == "papua new guinea"

replace country = "New Zealand" if country == "NZE"
replace country = "New Zealand" if country == "NEW ZEALAND"
replace cowcode = 920 if country == "New Zealand"
replace cowcode = 920 if country == "new zealand"

replace country = "Vanuatu" if country == "VAN"
replace country = "Vanuatu" if country == "VANUATU"
replace cowcode = 935 if country == "Vanuatu"
replace cowcode = 935 if country == "vanuatu"

replace country = "Solomon Islands" if country == "SOLOMON ISLANDS"
replace cowcode = 940 if country == "Solomon Islands"
replace cowcode = 940 if country == "solomon islands"

replace country = "Kiribati" if country == "KIR"
replace country = "Kiribati" if country == "KIRIBATI"
replace cowcode = 946 if country=="Kiribati"
replace cowcode = 946 if country=="kiribati"

replace country = "Tuvalu" if country == "TUV"
replace country = "Tuvalu" if country == "TUVALU"
replace cowcode = 947 if country == "Tuvalu"

replace country = "Fiji" if country == "FIJ"
replace country = "Fiji" if country == "FIJI"
replace cowcode = 950 if country == "Fiji"
replace cowcode = 950 if country == "fiji"

replace country = "Tonga" if country == "TON"
replace country = "Tonga" if country == "TONGA"
replace cowcode=955 if country=="Tonga"
replace cowcode=955 if country=="tonga"

replace country = "Nauru" if country == "NAURU"
replace cowcode = 970 if country == "Nauru"

replace country = "Marshall Islands" if country == "MARSHALL ISLANDS"
replace cowcode=983 if country=="Marshall Islands"
replace cowcode=983 if country=="marshall islands"

replace country = "Palau" if country == "PALAU"
replace cowcode=986  if country=="Palau"
replace cowcode=986  if country=="palau"

replace country = "Micronesia" if country == "MICRONESIA"
replace cowcode = 987 if country=="Micronesia, Fed. Sts."
replace cowcode = 987 if country=="Micronesia"
replace cowcode = 987 if country=="Federated States of Micronesia"
replace cowcode = 987 if country=="micronesia, fed. sts."
replace cowcode = 987 if country=="micronesia"
replace cowcode = 987 if country=="federated states of micronesia"

replace country = "Samoa" if country == "Samoan Islands"
replace country = "Samoa" if country == "WESTERN SAMOA"
replace cowcode=990 if country=="Samoa"
replace cowcode=990 if country=="samoa"
